<!--
 * @Author: pengmingming
 * @Date: 2020-12-25 13:48:27
 * @LastEditors: pengmingming
 * @LastEditTime: 2020-12-25 14:23:05
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            display: inline-block;
            background: #655;
            padding: 0.8em;
            margin-right: 20px;
        }
        .box .inner-box {
            border-radius: .8em;
            background: tan;
            padding: 1em;
        }
        .box2 {
            outline: 0.8em solid #655;
            border-radius: .8em;
            background-color: tan;
            box-shadow: 0 0 0 .6em #655;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="inner-box">
            两个div实现
        </div>
    </div>
    <div class="box box2">
        一个div，outline,box-shadow
    </div>
</body>
</html>